package com.ruoyi.system.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class XmlGenerate {
    private String id;
    private String username = "test";
    private String matchName ;
    private Date startDate =  new Date();
    
    private Date endDate =  new Date();
    private String licenseName = "测试license";
    private Integer level;
    private Integer type;
    private Integer archery ;
    private Integer shoot;
    private boolean Meter10 = true;
    private boolean Meter25 = true;
    private boolean Meter25RFP = true;
    private boolean Meter50 = true;
    private boolean shotgun = true;

    public void copyFrom(XmlUser user) {
        // 只拷贝匹配的属性
        BeanUtils.copyProperties(user, this);
    }
}
